from django.db import models
from datetime import datetime

# Create your models here.


# python manage.py makemigrations
# python manage.py migrate

class UserInfo(models.Model):
    nickName = models.CharField(verbose_name="微信名",max_length=64)
    avatarUrl = models.CharField(verbose_name="头像url",max_length=128)
    token = models.CharField(
        verbose_name="用户token",max_length=64,unique=True,blank=True,null=True
    )

    CreateTime = models.DateTimeField(default=datetime.now,verbose_name='用户注册时间')
    phone = models.CharField(verbose_name="手机号码",default="15633545654",max_length=11)

    class Meta:
        db_table = "userInfo"
        verbose_name = "微信用户"
        verbose_name_plural = verbose_name


